﻿@page

@using Volo.CmsKit.Admin.Web.Pages.CmsKit.Blogs
@using Volo.CmsKit.Admin.Web.Pages
@using Volo.CmsKit.Admin.Web.Menus
@using Volo.Abp.AspNetCore.Mvc.UI.Packages.Slugify
@using Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared.Pages.Shared.Components.AbpPageToolbar

@inherits CmsKitAdminPageBase

@model IndexModel

@{
    PageLayout.Content.Title = L["Blogs"].Value;
    PageLayout.Content.BreadCrumb.Add(L["Menu:CMS"].Value);
    PageLayout.Content.MenuItemName = CmsKitAdminMenus.Blogs.BlogsMenu;
}

@section scripts {
    <abp-script-bundle>
        <abp-script src="/client-proxies/cms-kit-common-proxy.js"/>
        <abp-script src="/client-proxies/cms-kit-admin-proxy.js"/>
        <abp-script src="/Pages/CmsKit/Blogs/index.js"/>
        <abp-script src="/Pages/CmsKit/Blogs/createModal.js"/>
        <abp-script src="/Pages/CmsKit/Blogs/updateModal.js"/>
        <abp-script type="typeof(SlugifyScriptContributor)"/>
    </abp-script-bundle>
}

@section content_toolbar {
    @await Component.InvokeAsync(typeof(AbpPageToolbarViewComponent), new { pageName = typeof(IndexModel).FullName })
}

<div id="CmsKitBlogsWrapper">
    <abp-card>
        <abp-card-body>
            <abp-table  id="BlogsTable" class="nowrap"></abp-table>
        </abp-card-body>
    </abp-card>
</div>
